package com.cjh.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author cjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp implements Serializable {
    //标记为主键，自动增长
    @TableId(value = "emp_id", type = IdType.AUTO)
    private Integer empId;
    @TableField("emp_name")
    private String empName;
    @TableField("gender")
    private Character gender;
    @TableField("email")
    private String email;
    @TableField("dept_id")
    private Integer deptId;

    @TableLogic
    private Integer deleted;
    @TableField(exist = false)
    private Dept dept;

    public static final String EMP_ID="emp_id";
    public static final String EMP_NAME="emp_name";
    public static final String GENDER="gender";
    public static final String EMAIL="email";
    public static final String DEPT_ID="dept_id";


}
